{literal}
<style type="text/css">
.new_cart th.remove {ldelim}
	width: 10px;
}
.new_cart th {
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: #999;
}
.new_cart th small {
	display:block;
	font-weight:normal;
}
.new_cart {
	margin-top: 100px;
	margin-right: auto;
	margin-left: auto;
}
.new_cart .total_divider {
	border-top-width: 1px;
	border-top-style: solid;
	border-top-color: #9D9D9D;
	padding: 0px;
	font-size: 0px;
	line-height: 0px;
}
.new_cart  td , .new_cart th{
	padding: 5px;
	vertical-align: top;
}
.sumval td {
	background-color: #F3F3F3;
}
.new_cart .qty_controller {
	display: block;
	overflow: hidden;
	width: 52px;
	margin-right: auto;
	margin-left: auto;
}
.new_cart .qty_input {
	width: 30px;
	text-align: center;
	border: 1px inset #CCC;
	padding: 2px;
	height: 20px;
	float: left;
}
.new_cart .qtyincdec {
	display: inline-block;
	width: 12px;
	float: right;
}
.new_cart .qtyincdec a {
	display: block;
	background-color: #7c7c7c;
	text-decoration: none;
	border: 1px solid #686868;
	width: 10px;
	height: 10px;
	overflow: hidden;
	text-indent: -99999px;
	background-position: center center;
	background-repeat: no-repeat;
}
.new_cart .qtyincdec a:hover {
	border: 1px solid #232323;
	background-color: #515151;
}
.new_cart .qtyincdec a.incrs {
	background-image: url(images/qty_inc.gif);
	margin-bottom: 1px;
}
.new_cart .qtyincdec a.decrs {
	background-image: url(images/qty_dec.gif);
	margin-top: 1px;
}
.new_cart .remove_item_btn {
	display: block;
	height: 16px;
	width: 16px;
	text-indent: -99999px;
	background-image: url(http://tempscratchy2335.e-nitiative.eu/template/images/icons/cart_remove_itm.png);
}
.new_cart .item td {
	border-top-width: 1px;
	border-right-width: 1px;
	border-top-style: solid;
	border-right-style: dashed;
	border-top-color: #CCC;
	border-right-color: #EEE;
}
.new_cart .item td.lst {
	border-right:none;
}
.new_cart tr.item:hover td {
	border-top-width: 1px;
	border-top-style: solid;
	border-top-color: #CCC;
	background-color: #A6FBFF;
}
.new_cart .total_amount {
	font-size: 14px;
	font-weight: bold;
}
.new_cart .total_wout_vat_amount {
	font-weight: bold;
}
.new_cart .total_amount .amount {
	border-top-width: 3px;
	border-top-style: double;
	border-top-color: #888;
}
.new_cart .total_amount .lbl {
	border-top-width: 3px;
	border-top-style: double;
	border-top-color: transparent;
}
.new_cart .cart_actions_col {
	background-color: #E5E5E5;
	padding: 10px;
	border-top-width: 1px;
	border-top-style: solid;
	border-top-color: #C7C7C7;
}
.new_cart .cart_actions .checkout {
	background-color: #676767;
	color: #FFF;
	text-decoration: none;
	display: block;
	padding-top: 5px;
	padding-right: 10px;
	padding-bottom: 5px;
	padding-left: 10px;
	font-weight: bold;
	font-size: 13px;
}

.new_cart .item_tax_info th, .new_cart .item_tax_info td {
	padding: 2px;
	border:none !important;
	font-weight:normal;
	text-align:right;
}
.new_cart .item_tax_info .total_tax_amount td, .new_cart .item_tax_info .total_tax_amount th{
	font-weight: bold;
	border-top-width: 1px;
	border-top-style: solid;
	border-top-color: #CCC;
}
</style>
{/literal}
<div id="page-heading">
	<h1>{$title}</h1>	
</div>
{$carthtml}
{section name=sec1 loop=$order_arr}
<table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
	<tr>
		<th colspan="2" align="left" class="table-header-repeat line-left">&nbsp;</th>
	</tr>
        {if $order_arr[sec1].customer_id != ""}
	<tr>
		<td width="20%">Customer id</td>
		<td width="60%">{$order_arr[sec1].customer_id}<input type="hidden" name="ordertotal" id="ordertotal" value="{$ordertotal}" /><input type="hidden" name="userid" id="userid" value="{$order_arr[sec1].customer_id}" /></td>
	</tr>
        {/if}
        {if $order_arr[sec1].order_date != ""}
	<tr>
		<td width="20%">Order Date</td>
		<td width="60%">{$order_arr[sec1].order_date}</td>
	</tr>
        {/if}
        {if $order_arr[sec1].user_email!= ""}
	<tr>
		<td width="20%">Customer Email</td>
		<td width="60%">{$order_arr[sec1].user_email}</td>
	</tr>
        {/if}
        {if $order_arr[sec1].user_firstname != ""}
	<tr>
		<td width="20%">Customer Name</td>
		<td width="60%">{$order_arr[sec1].user_firstname}&nbsp;{$order_arr[sec1].user_lastname}</td>
	</tr>
        {/if}
        {if $order_arr[sec1].user_address != ""}
	<tr>
		<td width="20%">Customer Address</td>
		<td width="60%">{$order_arr[sec1].user_address}</td>
	</tr>
        {/if}
          {if $order_arr[sec1].user_phone != ""}
	<tr>
		<td width="20%">Customer Phone</td>
		<td width="60%">{$order_arr[sec1].user_phone}</td>
	</tr>
        {/if}
          {if $order_arr[sec1].companyname != ""}
	<tr>
		<td width="20%">Company</td>
		<td width="60%">{$order_arr[sec1].companyname}</td>
	</tr>
        {/if}
          {if $order_arr[sec1].user_address != ""}
	<tr>
		<td width="20%">Customer id</td>
		<td width="60%">{$order_arr[sec1].user_address}</td>
	</tr>
        {/if}
          {if $order_arr[sec1].companyaddress != ""}
	<tr>
		<td width="20%">Company Adress</td>
		<td width="60%">{$order_arr[sec1].companyaddress}</td>
	</tr>
        {/if}
          {if $order_arr[sec1].typeofbusiness != ""}
	<tr>
		<td width="20%">Business Type</td>
		<td width="60%">{$order_arr[sec1].typeofbusiness}</td>
	</tr>
        {/if}
          {if $order_arr[sec1].prefferedpayment != ""}
	<tr>
		<td width="20%">Preffered Payment</td>
		<td width="60%">{$order_arr[sec1].prefferedpayment}</td>
	</tr>
        {/if}
         {if $order_arr[sec1].prefferedpayment != ""}
	<tr>
		<td width="20%">Preffered Payment</td>
		<td width="60%">{$order_arr[sec1].prefferedpayment}</td>
	</tr>
        {/if}
         {if $order_arr[sec1].usertype != ""}
	<tr>
		<td width="20%">User Type</td>
		<td width="60%">{$order_arr[sec1].usertype}</td>
	</tr>
        {/if}
                 {if $order_arr[sec1].userfax != ""}
	<tr>
		<td width="20%">Fax</td>
		<td width="60%">{$order_arr[sec1].userfax}</td>
	</tr>
        {/if}
                 {if $order_arr[sec1].nicno != ""}
	<tr>
		<td width="20%">NIC</td>
		<td width="60%">{$order_arr[sec1].nicno}</td>
	</tr>
        {/if}
        {if $order_arr[sec1].profession != ""}
	<tr>
		<td width="20%">Designation</td>
		<td width="60%">{$order_arr[sec1].profession}</td>
	</tr>
        {/if}
        <tr>
		<td width="20%">Delivered</td>
		<td width="60%">
               {if $showdeliver eq 1}
                <input {$deliveredcheck} type="checkbox" name="isdelivered" id="isdelivered" value="1"/>
                {/if}
                {$creditbalancehtml}
                </td>
	</tr>
        <tr>
		<td width="20%">Paid</td>
		<td width="60%"><input {$paidcheck} type="checkbox" name="ispaid" id="ispaid" value="1"/></td>
	</tr>
        {if $paidcheck eq "" and $deliveredcheck eq ""}
        <tr>
		<td width="20%">Cancel this order</td>
		<td width="60%"><input onclick="cancelorder({$orderid})" type="button" name="cancel" id="cancel" value="cancel"/></td>
	</tr>
        {/if}
	<tr>
	<td>&nbsp;</td>
	<td><div class="edit-icoset"><a href="javascript: void(0);" onclick="processorder({$orderid});"><img src="images/icons/save-2.gif" />Update</a>
	<input type="hidden" name="orderid" id="productid" value="{$orderid}" /></td> 
	</tr>
</table>
{/section}